package com.gitee.kenewstar.migration.entity;

import com.fasterxml.jackson.annotation.JsonInclude;
import lombok.Data;
import lombok.experimental.Accessors;

/**
 * @author kenewstar
 */
@Data
@Accessors(chain = true)
@JsonInclude(JsonInclude.Include.NON_NULL)
public class CommonResult {

    private String jobCode;
    private String templateCode;
    private String lovCode;
    private String lovViewCode;
    private String profileName;
    private String ruleCode;
    private String menuCode;
    private String fdLevel;
    private String promptKey;
    private String promptCode;
    private String lang;
    private String code;

    private Long tenantId;
    private Boolean successFlag;
    private String errorMsg;


    public static CommonResult create(Boolean successFlag) {
        return new CommonResult().setSuccessFlag(successFlag);
    }

    public static CommonResult create(Boolean successFlag, Long tenantId) {
        return new CommonResult().setSuccessFlag(successFlag).setTenantId(tenantId);
    }



}
